package com.twu.biblioteca.Constants;

import com.twu.biblioteca.elements.Movie;

import java.util.ArrayList;
import java.util.List;

public class Movies {
    public static final Movie WAR_AND_PEACE = new Movie.Builder().name("War and Peace").director("Alisa").year(1860).rating(7).isAvailable(true).build();
    public static final Movie SIMPLE_LOVE = new Movie.Builder().name("Simple love").director("Me").year(1990).rating(3).isAvailable(false).build();
    public static final Movie PIANIST_ON_SEA = new Movie.Builder().name("Pianist on sea").director("George").year(1994).rating(7).isAvailable(true).build();
    public static final Movie SNOW = new Movie.Builder().name("Frozen").director("James").year(2014).rating(9).   isAvailable(true).build();

    public List<Movie> getAllMovies() {
        List<Movie> allMovies = new ArrayList<Movie>();
        allMovies.add(WAR_AND_PEACE);
        allMovies.add(SIMPLE_LOVE);
        allMovies.add(PIANIST_ON_SEA);
        allMovies.add(SNOW);

        return allMovies;
    }
}
